package com.xunfang.controller;

import com.xunfang.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.*;

/**
 * @author yellow Doctor
 * @date 2025-09-11
 * @desc https://blog.csdn.net/hekai7217
 */
@RestController
@RequestMapping("/user")
public class UserController {

    @Resource
    private UserService userService;



    @GetMapping("/")
    public String hello(@RequestBody String name) {
        userService.saveUser(name);

        return "hello spring";
    }

}
